/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-11-20 11:19:02
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-06-04 09:18:39
 * @FilePath: \cxl-driving-training\src\views\drivingSchoolManagement\shop\config.ts
 */
export const tableConfig = {
    headerOperation: [
        // {
        //     type: 'batch',
        //     visible: true,
        //     permission: [],
        //     className: '',
        //     name: '批量导入',
        //     button: 'file',
        //     radioGroup: []
        // },
        // {
        //     type: 'download',
        //     visible: true,
        //     permission: [],
        //     className: '',
        //     name: '模板下载',
        //     button: 'button',
        //     radioGroup: []
        // },
        {
            type: 'create',
            visible: true,
            permission: ['POST:/api/system/schoolStore/manage/add'],
            className: '',
            name: '新增门店',
            button: 'button',
            radioGroup: []
        }
    ],
    search: [{ key: 'name', type: 'text', name: '门店名称', placeholder: '' }],
    permission: ['GET:/api/system/schoolStore/manage/getPageList'],
    table: {
        operationWidth: '82px',
        operation: [
            {
                type: 'edit',
                visible: true,
                permission: [
                    'POST:/api/system/schoolStore/manage/edit',
                    'GET:/api/system/schoolStore/manage/getDetailById'
                ],
                className: '',
                name: '编辑'
            }
        ],

        propName: {
            name: '门店名称',
            ndame: '门店代码',
            schoolName: '所属驾校',
            district: '所在片区',
            city: '所在城市',
            area: '所在区域',
            status: '状态',
            createBy: '操作人',
            updateTime: '操作时间'
        },
        showSummary: false,
        selection: false,
        index: false,
        isDialog: false,
        summaryArray: [],
        summaryType: '',
        sortable: [],
        switch: {
            disabled: false,
            permission: ['POST:/api/system/schoolStore/manage/updateDisable'],
            tooltip: {
                visible: false,
                content: ''
            }
        }
    }
}
